package com.netease.l.b;

import android.content.Context;
import com.netease.pris.atom.q;
import com.netease.pris.atom.u;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

public class a
{
  public static String a(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, String paramString)
  {
    return a(new Date(paramInt1 - 1900, paramInt2 - 1, paramInt3, paramInt4, paramInt5, paramInt6), paramString);
  }

  public static String a(Context paramContext, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)
  {
    return a(new Date(paramInt1 - 1900, paramInt2 - 1, paramInt3, paramInt4, paramInt5, paramInt6), paramContext.getString(2131362236));
  }

  public static String a(Context paramContext, u paramu)
  {
    String str;
    if ((paramu.e() == null) || (paramu.e().a() == null))
      str = paramContext.getString(2131362238);
    while (true)
    {
      return str;
      Calendar localCalendar1 = Calendar.getInstance();
      int i = localCalendar1.get(1);
      int j = localCalendar1.get(2);
      int k = localCalendar1.get(5);
      int m = localCalendar1.get(11);
      int n = localCalendar1.get(12);
      int i1 = localCalendar1.get(13);
      str = null;
      Calendar localCalendar2 = Calendar.getInstance();
      localCalendar2.setTime(paramu.e().a());
      if ((localCalendar2.get(11) == 0) && (localCalendar2.get(12) == 0) && (localCalendar2.get(13) == 0))
      {
        if ((localCalendar2.get(1) == 0) && (localCalendar2.get(2) == 0) && (localCalendar2.get(5) == 0))
        {
          str = paramContext.getString(2131362238);
          continue;
        }
        if (i == localCalendar2.get(1))
        {
          if (j == localCalendar2.get(2))
          {
            if (k == localCalendar2.get(5))
            {
              str = paramContext.getString(2131362238);
              continue;
            }
            if (k - 1 == localCalendar2.get(5))
            {
              str = paramContext.getString(2131362239);
              continue;
            }
            str = c(paramContext, paramu.e().a());
            continue;
          }
          str = c(paramContext, paramu.e().a());
          continue;
        }
        if (i < localCalendar2.get(1))
          continue;
        str = d(paramContext, paramu.e().a());
        continue;
      }
      if ((i == localCalendar2.get(1)) && (j == localCalendar2.get(2)) && (k == localCalendar2.get(5)) && (m == localCalendar2.get(11)) && (n == localCalendar2.get(12)))
      {
        int i3 = Math.abs(i1 - localCalendar2.get(13));
        if (i3 == 0)
        {
          str = paramContext.getString(2131362231);
          continue;
        }
        Object[] arrayOfObject2 = new Object[1];
        arrayOfObject2[0] = Integer.valueOf(i3);
        str = paramContext.getString(2131362232, arrayOfObject2);
        continue;
      }
      if ((i == localCalendar2.get(1)) && (j == localCalendar2.get(2)) && (k == localCalendar2.get(5)) && (m == localCalendar2.get(11)))
      {
        int i2 = Math.abs(n - localCalendar2.get(12));
        Object[] arrayOfObject1 = new Object[1];
        arrayOfObject1[0] = Integer.valueOf(i2);
        str = paramContext.getString(2131362233, arrayOfObject1);
        continue;
      }
      if ((i == localCalendar2.get(1)) && (j == localCalendar2.get(2)) && (k == localCalendar2.get(5)))
      {
        Math.abs(m - localCalendar2.get(11));
        str = a(paramContext, paramu.e().a());
        continue;
      }
      if ((i == localCalendar2.get(1)) && (j == localCalendar2.get(2)))
      {
        if (Math.abs(k - localCalendar2.get(5)) == 1)
        {
          str = b(paramContext, paramu.e().a());
          continue;
        }
        str = e(paramContext, paramu.e().a());
        continue;
      }
      if (i == localCalendar2.get(1))
      {
        Math.abs(j - localCalendar2.get(2));
        str = e(paramContext, paramu.e().a());
        continue;
      }
      if (i <= localCalendar2.get(1))
        continue;
      Math.abs(i - localCalendar2.get(1));
      str = f(paramContext, paramu.e().a());
    }
  }

  public static String a(Context paramContext, Date paramDate)
  {
    return a(paramDate, paramContext.getString(2131362234));
  }

  public static String a(Date paramDate, String paramString)
  {
    if (paramDate == null);
    SimpleDateFormat localSimpleDateFormat;
    for (String str = null; ; str = localSimpleDateFormat.format(paramDate))
    {
      return str;
      localSimpleDateFormat = new SimpleDateFormat(paramString);
      localSimpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT+8:00"));
    }
  }

  public static String b(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, String paramString)
  {
    return a(new Date(paramInt1 - 1900, paramInt2 - 1, paramInt3, paramInt4, paramInt5, paramInt6), paramString);
  }

  public static String b(Context paramContext, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)
  {
    return a(new Date(paramInt1 - 1900, paramInt2 - 1, paramInt3, paramInt4, paramInt5, paramInt6), paramContext.getString(2131362237));
  }

  public static String b(Context paramContext, Date paramDate)
  {
    return a(paramDate, paramContext.getString(2131362235));
  }

  public static String c(int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6, String paramString)
  {
    return a(new Date(paramInt1 - 1900, paramInt2 - 1, paramInt3, paramInt4, paramInt5, paramInt6), paramString);
  }

  public static String c(Context paramContext, Date paramDate)
  {
    return a(paramDate, paramContext.getString(2131362240));
  }

  public static String d(Context paramContext, Date paramDate)
  {
    return a(paramDate, paramContext.getString(2131362241));
  }

  public static String e(Context paramContext, Date paramDate)
  {
    return a(paramDate, paramContext.getString(2131362237));
  }

  public static String f(Context paramContext, Date paramDate)
  {
    return a(paramDate, paramContext.getString(2131362236));
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.l.b.a
 * JD-Core Version:    0.6.0
 */